package com.iflytek.crvoice2txt.activity;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.RelativeLayout;

import com.iflytek.crvoice2txt.R;
import com.iflytek.crvoice2txt.util.PermissionUtil;

public class MainActivity extends BaseActivity {

    private RelativeLayout rl_minutes, rl_record_query;

    private View selectedView;

    @Override
    public void widgetClick(View v) {

        switch (v.getId()) {
            case R.id.rl_minutes:
                startActivity(new Intent(MainActivity.this, RecoderSignActivity.class));
                break;
            case R.id.rl_record_query:
                startActivity(new Intent(MainActivity.this, RecorderSearchActivity.class));
                break;
        }
    }

    @Override
    protected void init() {
        PermissionUtil.requestPermissions(this);
    }

    @Override
    public View bindView() {
        return null;
    }

    @Override
    public int bindLayout() {
        return R.layout.activity_main;
    }

    @Override
    public void initView(View view) {

        rl_minutes = findViewById(R.id.rl_minutes);
        rl_record_query = findViewById(R.id.rl_record_query);
    }


    @Override
    public void setListener() {

        rl_minutes.setOnClickListener(this);
        rl_record_query.setOnClickListener(this);
    }

    @Override
    public void doBusiness(Context mContext) {

    }
}
